package com.emmmya.ocs.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.emmmya.harinCheck.annotation.Check;
import lombok.Data;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 创建人：咕噜肉IT小店-黑医
 * 创建时间 2022年08月26日 11:04:08
 * 描述：
 */
@Data
@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(name = "h_serial_number")
@TableName("h_serial_number")
public class SerialNumber implements Serializable {
    @Column(name="no",columnDefinition = "int(6)")
    @TableField("no")
    @Check(name="流水号")
    private Integer no;

    @Column(name="module")
    @TableField("module")
    @Check(name="适用模块")
    @Id
    private String module;

    @Column(name="frequency",nullable = true)
    @TableField("frequency")
    @Check(name="重置频率",desc = "频率：day、week、month、year")
    private String frequency;



 }
